package seata.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import seata.dao.SeataTable3Mapper;

@RestController
public class Provider8806Controller {
    @Autowired
    private SeataTable3Mapper seataTable3Mapper;

    @GetMapping("/c1")
    public String c1(){
        return seataTable3Mapper.getSeataTableById(1).toString();
    }

    @GetMapping("/update")
    public String update(String name){
        seataTable3Mapper.updateSeataTableById(1,name);
        return "success";
    }
}
